/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fasea.index.filehandler;

import java.io.File;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;

/**
 *
 * @author WolframL
 */
public class DefaultHandler extends FileHandler {
    
    public Document getTypedDocument(File file) throws FileHandlerException {
        Document document = createDefaultLuceneDocument(file);
        document.add(new Field("content", file.getName(), Field.Store.YES,
                Field.Index.ANALYZED));
        return document;
    }
}
